﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<style type="text/css">
        .yin
    {
        display: none;
        hidden: none;
    }
</style>
<script type="text/javascript">
    function openNew(){
        
        window.location.href='MCSQB.aspx?roleid='+'<%=HttpContext.Current.Request["ROLEID"] %>'+'&type='+ escape('<%=HttpContext.Current.Request["TYPE"] %>');
    }
    function editNew(id){
        window.location.href='MCSQB.aspx?roleid='+'<%=HttpContext.Current.Request["ROLEID"] %>'+'&id='+id+'&type='+ escape('<%=HttpContext.Current.Request["TYPE"] %>');
    }
    window.onload=function aa(){
        var t1='<%=HttpContext.Current.Request["TYPE"] %>';
        if(t1!=null&&t1!=""){
            document.getElementById("Button3").style.display='block';
        }
        var t2='<%=HttpContext.Current.Request["ROLEID"] %>';
        if(t2!=null&&t2!=""){
            document.getElementById("ctl00_MainerRegion_MCSQListControl___DropDownList1").value=t2;
            document.getElementById("ctl00_MainerRegion_MCSQListControl___DropDownList1").setAttribute("disabled","disabled");
        }
    };
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font2" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">密钥人员维护 </font>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="window_tab_list"
    style="width: 98%; margin: 20px 0 10px 0; line-height: 35px; text-align: center;">
    <tr style="height: 30px;">
        <td>
            区属
        </td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server">
            </asp:DropDownList>
        </td>
        <td>
            用户姓名：
        </td>
        <td>
            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnSeach" runat="server" Text="查询" />&nbsp;
            <input id="Button1" type="button" value="重置" onclick="javascript:window.location.href=location.href" />&nbsp;
            <input id="Button2" type="button" value="新增" onclick="openNew()" />
        </td>
        <td>
            
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="window_tab_list"
    style="width: 98%; margin: 20px 0 10px 0; line-height: 35px; text-align: center;">
     </table>
     <center style="margin-left: 10px;">
    <CBW:CustomGridView ShowItemNumber="true" AutoGenerateColumns="false" ID="CustomGridView1"
        runat="server" AllowPaging="true" AllowSorting="false" CustomSortExpression=""
        HideTextLength="10" ShowCmpAndCancel="False" ShowHideColModel="None" Width="99%"
        CssClass="window_tab_list" CustomGridViewClass="window_tab_list_fst">
        <Columns>
            <asp:BoundField DataField="用户类型" HeaderText="用户类型" />
            <asp:BoundField DataField="密钥" HeaderText="密钥" />
            <asp:BoundField DataField="申请人姓名" HeaderText="用户姓名" />
            <asp:BoundField DataField="登录名" HeaderText="登录名" />  
            <asp:BoundField DataField="职务" HeaderText="职务" />
            <asp:BoundField DataField="项目名称" HeaderText="项目名称" />
            <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:void(0);" onclick="editNew('<%#Eval("ID")%>')">编辑</a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" HeaderText="删除" ItemStyle-HorizontalAlign="Center" />
        </Columns>
    </CBW:CustomGridView>
    <input id="Button3" type="button" value="返回" onclick="javascript:window.location.href=('MCSQ.aspx');" style="display:none" />
</center>